package com.nut.article.service;

import com.nut.article.common.Result;
import com.nut.article.entity.Category;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

public interface CategoryService {

    String categoryList = "categoryList";

    Result<List<Category>> list();

    //清理缓存
    Result cleanCache();

    Result<Category> getById(Serializable id);

    Result add(Category category);

    Result updateById(Category category);

    Result deleteByIds(Set<Integer> ids);
    
}
